package com.cn.kabalifeuser.ui.integral.adapter;

import android.graphics.Typeface;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cn.kabalifeuser.R;
import com.cn.kabalifeuser.ui.integral.bean.OrderCouponsBean;
import com.flyco.roundview.RoundRelativeLayout;

import java.util.List;

/**
 * Created by 晓林 on 2020/9/24.
 * function:
 */
public class CommodityCouponFillAdapter extends BaseQuickAdapter<OrderCouponsBean.ResultBean, BaseViewHolder> {

    public CommodityCouponFillAdapter(int layoutResId, @Nullable List<OrderCouponsBean.ResultBean> data) {
        super(layoutResId, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, final OrderCouponsBean.ResultBean item) {
        helper.setText(R.id.tv_name, item.getTitle());
//        RoundRelativeLayout ll_item = helper.getView(R.id.ll_item);
//        if (item.isCheck()) {
//            ll_item.getDelegate().setStrokeColor(this.mContext.getResources().getColor(R.color.main_color));
//        } else {
//            ll_item.getDelegate().setStrokeColor(this.mContext.getResources().getColor(R.color.main_white));
//        }
    }
}

